//
//  FavMerchantParser.h
//  FootPrint
//
//  Created by 秦 东方 on 4/11/13.
//  Copyright (c) 2013 alex tao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserFavoriteMerchantQueryResponse.pb.h"
#import "CustomedMerchantResponse.pb.h"
#import "UserFavoriteMerchantResponse.pb.h"
#import "UserFavoriteMerchantDelResponse.pb.h"


@protocol FavMerchantDelegate <NSObject>

//请求收藏
- (void)didFinishReqFav:(UserFavoriteMerchantQueryResponseMessage*)favMerchants;
- (void)failReqFav;

//添加商户
- (void)didFinishAddMer:(CustomizedMerchantResponseMessage*)addResp;
- (void)failAddMer;

//添加收藏
- (void)didFinishAddFav:(UserFavoriteMerchantResponseMessage*)addFavResp;
- (void)failAddFav;

//删除收藏
- (void)didFinishDel:(UserFavoriteMerchantDelResponseMessage*)delFavResp;
-(void)failDelFav;

@end

///////////////////////////////////////////
////////////////////////
@interface FavMerchantParser : CommonParser

@property (nonatomic, assign) id<FavMerchantDelegate> delegate;

//请求所有收藏的商户
- (void) reqFavMerchant : (long long)uid;

//添加一个新的商户
- (void)reqAddMerchant:(long long)uid name:(NSString*)name address:(NSString*)addr;

//添加一个商户到收藏
- (void)reqAddFav:(long long)uid merId:(long long)merId;

//删除一个收藏
- (void)reqDelFav:(long long)uid merId:(long long)merId;

@end
